//1.导入封装好的service
import service from "../utils/request";

//注册接口
export function user_register(payload = {}) {
    return service.post('/user_register', payload)
}
//1.登录接口
export function user_login(payload = {}) {
    return service.post('/user_login', payload)
}


//主页轮播图接口
export function index_swiper(payload = {}) {
    return service.get('/index_swiper', { params: payload })
}
//主页精选3张图
export function index_xuan(payload = {}) {
    return service.get('/index_xuan', { params: payload })
}
//主页游玩
export function index_youwan(payload = {}) {
    return service.get('/index_youwan', { params: payload })
}
//主页游记
export function index_youji(payload = {}) {
    return service.get('/index_youji', { params: payload })
}
//攻略上图
export function gong_top(payload = {}) {
    return service.get('/gong_top', { params: payload })
}
//攻略下图
export function gong_xia(payload = {}) {
    return service.get('/gong_xia', { params: payload })
}
//攻略专栏
export function gong_zhuanlan(payload = {}) {
    return service.get('/gong_zhuanlan', { params: payload })
}
//攻略问答
export function gong_wenda(payload = {}) {
    return service.get('/gong_wenda', { params: payload })
}
//酒店列表
export function jiudian_list(payload = {}) {
    return service.get('/jiudian_list', { params: payload })
}

//我的问答
export function my_wenda(payload = {}) {
    return service.patch('/my_wenda', { params: payload })
}
//全部手记
export function quan_shouji(payload = {}) {
    return service.get('/quan_shouji', { params: payload })
}
//搜索页面
export function search(payload = {}) {
    return service.get('/search', { params: payload })
}
//搜索详情页面
export function search_qiang(payload = {}) {
    return service.get('/search_qiang', { params: payload })
}
//搜索详情页面-酒店
export function search_qiang_jiudian(payload = {}) {
    return service.get('/search_qiang_jiudian', { params: payload })
}
//搜索详情页面-用户
export function search_yonghu(payload = {}) {
    return service.get('/search_yonghu', { params: payload })
}
//行程页面—最新提问
export function xingcheng_tiwen(payload = {}) {
    return service.get('/xingcheng_tiwen', { params: payload })
}